package org.wechat4j.model.template.message;

import java.util.HashMap;
import java.util.Map;

/**
 * @author bjliuyong
 * @version 1.0
 * @created date 16-11-9
 */
public class TemplateMessage {


    private String touser ;

    private String template_id;

    private String url ;

    private String topcolor ;

    private Map<String,Item> data = new HashMap<String,Item>();

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTopcolor() {
        return topcolor;
    }

    public void setTopcolor(String topcolor) {
        this.topcolor = topcolor;
    }

    public Map<String, Item> getData() {
        return data;
    }

    public void setData(Map<String, Item> data) {
        this.data = data;
    }

    /**
     *
     * {{first.DATA}} 支付金额：{{orderMoneySum.DATA}} 商品信息：{{orderProductName.DATA}} {{Remark.DATA}}
     *
     */
    public void put(String key ,Item item){
        data.put(key ,item);
    }

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }
}